<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<form action='<?=url::base(FALSE)?>auth/register' id='login' method='post'>
<fieldset>
  <legend>Регистрация пользователя</legend>
  <div id='errors'><?foreach($errors as $key=>$val):?><p><?=$key.": ".$val?></p><? endforeach?></div>
  <ol>
    <li><label for='email'>e-mail <em>*</em> </label><input type='text' name='email' id='email' size="30" maxlength="32" value="<?=isset($postdata['email']) ? $postdata['email'] : ''?>" /></li>
    <li><label for='email'>Повторите e-mail <em>*</em> </label><input type='text' name='email_confirm' id='email_confirm' size="30" maxlength="32" value="<?=isset($postdata['email_confirm']) ? $postdata['email_confirm'] : ''?>" /></li>
    <li><label for='username'>Логин <em>*</em> </label><input type='text' name='username' id='username' size="30" maxlength="32" value="<?=isset($postdata['username']) ? $postdata['username'] : ''?>" /></li>
    <li><label for='password'>Пароль <em>*</em> </label><input type='password' name='password' id='password' size="30" maxlength="50" /></li>
    <li><label for='password'>Повторите пароль <em>*</em> </label><input type='password' name='password_confirm' id='password_confirm' size="30" maxlength="50" /></li>
    <li><input type="submit" value="Зарегистрироваться" /></li>
  </ol>
</fieldset>
</form>
